package com.ruoyi.boat.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 路径对象 t_path
 *
 * @author ruoyi
 * @date 2023-08-01
 */
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Data
public class Path extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Integer id;

    /**
     *
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 艇编号
     */
    @Excel(name = "艇编号")
    private String boatCode;

    /**
     * 状态
     */
    @Excel(name = "状态", readConverterExp = "0=停止,1=进行,2保存未发送")
    private Integer status;

    /**
     * 路径点信息
     */
    private List<PathPoint> pathPointList;
    //路径信息JSONArray 字符串 因为没有找到可以直接把字符串转成List<T>的方法
    private String pathPointListJson;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


}
